html,
body {
    margin: 0;
}

.container {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(60deg, #4c76ff, #ad8aff);
}

.wave-background {
    position: relative;
    height: 100vh;
    // wave
    &::before,
    &::after {
        position: absolute;
        left: 50%;
        display: block;
        content: '';
        border: 2px solid rgba(255, 255, 255, 0.25);
        border-radius: 48%;
    }
    &::before {
        bottom: 2vw;
        width: 200vw;
        height: 200vw;
        animation: wave 10s linear infinite;
    }
    &::after {
        bottom: 3vw;
        width: 250vw;
        height: 250vw;
        animation: wave 20s linear infinite;
    }
}

%slide-item {
    @extend %transition;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    &::after {
        display: block;
        content: '';
        height: 20%;
    }
}

.slide-item-normal {
    @extend %slide-item;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.9);
}

.slide-item-active {
    @extend %slide-item;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.step-ctrl {
    margin-top: 32px;
    text-align: center;
}

// step1
.title {
    font-size: 60px;
    font-weight: bold;
    color: #fff;
}

.text {
    font-size: 46px;
    color: #fff;
}

.name-input {
    width: 10em;
    padding: 4px 8px;
    font-size: 32px;
    text-align: center;
    background-color: $color-green;
    color: #ffffff;
    line-height: 2;
    border: none;
    outline: none;
}

// step2
.avatars {
    flex: 1;
    margin: 10px 0;
    overflow-y: auto;
    color: #fff;
}

.avatar-title {
    text-align: center;
    font-weight: bold;
    font-size: 26px;
}

.avatar-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.avatar-item {
    width: 20%;
}

.avatar-item-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 20px auto;
    cursor: pointer;

    &::before {
        @extend %transition;
        position: absolute;
        display: block;
        content: '';
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: rgb(236, 118, 118);
        transform: scale(0.9);
    }
}

.avatar-item-container-active {
    @extend .avatar-item-container;
    &::before {
        transform: scale(1.1);
    }
}

.avatar-preview {
    @extend %transition;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ccc center/cover no-repeat;
}

// step3
.user-name {
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    color: #fff;
}

.user-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 12px solid #fff;
    background: #ccc center/cover no-repeat;
}

// wave animation
@keyframes wave {
    0% {
        transform: translate(-50%, 0) rotate(0);
    }
    100% {
        transform: translate(-50%, 0) rotate(1turn);
    }
}
